package fr.vvins.core.biz.order.dto;

import java.io.Serializable;

import fr.vvins.core.biz.catalog.dto.ProductDto;
import fr.vvins.core.common.dto.BeanDtoImpl;
import fr.vvins.core.common.dto.annotation.Dto;
import fr.vvins.core.order.entity.CommerceItem;

/**
 * CommerceItem entity
 */
@Dto(name="CommerceItem", entity=CommerceItem.class)
public class CommerceItemDto extends BeanDtoImpl implements Serializable {

	private static final long serialVersionUID = -1536657121622143850L;
	private OrderDto order;
	private ProductDto product;
	private Integer quantity;
	private String price;

	public CommerceItemDto() {
	}

	public CommerceItemDto(Integer id, OrderDto order, ProductDto product, Integer quantity,
			String price) {
		super();
		this.id = id;
		this.order = order;
		this.product = product;
		this.quantity = quantity;
		this.price = price;
	}

	public OrderDto getOrder() {
		return order;
	}

	public void setOrder(OrderDto order) {
		this.order = order;
	}

	public ProductDto getProduct() {
		return product;
	}

	public void setProduct(ProductDto product) {
		this.product = product;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}


}
